package com.atguigu.springcloud.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @PROJECT_NAME: cloud2020
 * @DESCRIPTION: openfeign的日志
 * @Author: csc
 * @DATE: 2023/4/11 8:11
 */
@Configuration //@Configuration代表全局生效. 注释掉之后也可以通过@FeignClient中的configuration属性指定日志
public class FeginConfig {

    @Bean
    Logger.Level feignLoggerLevel(){
        return Logger.Level.FULL;
    }

}
